Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support dynamic pipeline generation in-process #18

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

davidarcher
Copy link

No description provided.

Comment on lines +85 to +98
out, err := executeCommand("bash", []string{"-c", w.Generator})
if err != nil {
return nil, err
}

p, err := pipeline.Parse(strings.NewReader(out))
if err != nil {
return nil, err
}

for _, step := range p.Steps {
steps = append(steps, step)
}

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's the magic -- instead of expecting a hardcoded set of steps, we run the generator command, parse the output, and append those steps to the dynamic pipeline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant